<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style>
table { margin: 10px 0px;
border:#999 1px solid;}
</style>
</head>

<body>
<?php
require_once '../../inc.php';
echo PHP_VERSION;

$fn=new Clfn(__FILE__);
$fn->requireOnce(array(
"../../"."inc/clscandir.cls.php",
"../../"."inc/cltranscoding.cls.php"
));
$fn->requireOnce("../../inc/exinc/");

 $tab=new Cltable();
$err=new clerror();

#使用未定义的变量要报 notice 的
echo $novar;
#除以0要报警告的
echo 3/0;
#自定义一个错误
//trigger_error ('Trigger a fatal error', E_USER_ERROR); 
 echo $gkgl;
 
 set_exception_handler('exceptionHandler');  
throw new Exception("kkkkkkkkkkkkkkkk");  
throw new Exception("4654654kkk");  
function exceptionHandler(Exception $exception){  
     global $tab;
    $tab->export(array( 
 
	'__toString'=>$exception->__toString(),
	'getCode'=>$exception->getCode(),
	'getFile'=>$exception->getFile(),
	'getLine'=>$exception->getLine(),
	'getMessage'=>$exception->getMessage(),
	'getTrace'=>_print_r(array($exception->getTrace(),2,3,array(46,64,464,array(545454,4),64))),
	'getTraceAsString'=>$exception->getTraceAsString()
	),"200px");
	throw $exception;
}  


try{
	//adfasffa();
//mysql_connect('127.0.0.1','root','');
}catch(Exception  $e){
	echo $e->getTraceAsString();
}


?>
</body>
</html>